<?php

/**
 * OAuth For PHP
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@astrumfutura.com so we can send you a copy immediately.
 *
 * @category   PEAR
 * @package    UnitTests
 * @copyright  Copyright (c) 2008 Pádraic Brady (http://blog.astrumfutura.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: TestHelper.php 58 2007-06-11 11:03:13Z padraic $
 */

// Set error reporting to the level to which Zend Framework code must comply
error_reporting( E_ALL ^ E_DEPRECATED );
date_default_timezone_set('Europe/London');

// Determine the root, library, and tests directories of the framework distribution
$zfRoot    = dirname(dirname(__FILE__));
$zfLibrary = $zfRoot;
$zfTests   = $zfRoot . DIRECTORY_SEPARATOR . 'tests';

/*
Prepend the Zend Framework library/ and tests/ directories to the include_path. This allows the tests to run out of
the box and helps prevent loading other copies of the framework code and tests that would supersede this copy.
*/
set_include_path($zfLibrary . PATH_SEPARATOR
               . $zfTests   . PATH_SEPARATOR
               . get_include_path());

// Unset global variables no longer needed
unset($zfRoot, $zfLibrary, $zfTests);
